package com.appwoo.txtws.activity;

import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.content.res.Resources;
import android.os.AsyncTask;
import android.os.Bundle;
import android.text.Editable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AbsListView;
import android.widget.AbsListView.OnScrollListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.appwoo.android.exception.NotFoundNetWorkException;
import com.appwoo.android.exception.TimeOutException;
import com.appwoo.txtws.adapter.BlackListGameAdapter;
import com.appwoo.txtws.adapter.SoftTypeAdapter;
import com.appwoo.txtws.adapter.WebTypeAdapter;
import com.appwoo.txtws.app.AppActivity;
import com.appwoo.txtws.bean.Record_SoftBean;
import com.appwoo.txtws.bean.ServerAppBean;
import com.appwoo.txtws.bean.SoftTypeBean;
import com.appwoo.txtws.bean.StateBean;
import com.appwoo.txtws.bean.WebTypeBean;
import com.appwoo.txtws.component.Arith;
import com.appwoo.txtws.component.Logger;
import com.appwoo.txtws.component.RqSP;
import com.appwoo.txtws.service.SoftLimitService;
import com.appwoo.txtws.service.WebLimitService;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import org.xmlpull.v1.XmlPullParserException;

public class BlackListActivity extends AppActivity
  implements View.OnClickListener
{
  private static final int DIALOG1 = 1;
  private static final int DIALOG2 = 2;
  private Button ImageView_senior_del;
  private ListView ListView_black;
  private int Logchange = 1;
  private final String OUTTAG = "System.out";
  private RelativeLayout RelativeLayout_timesenior_del;
  private TextView TextView_type;
  private String addURL = "";
  private String alertString = "";
  private boolean blSelectAll = false;
  private BlackListGameAdapter blackListGameAdapter = null;
  private TextView black_Button_set1;
  private TextView black_Button_set2;
  private String equipName = "";
  private List<WebTypeBean> f_newList = null;
  private List<SoftTypeBean> f_newList_Soft = null;
  private List<Record_SoftBean> f_newList_game = null;
  private ServerAppBean f_serverAppBean = null;
  private SoftLimitService f_softLimitService;
  private SoftTypeAdapter f_softTypeApapter = null;
  private List<SoftTypeBean> f_softTypeList = null;
  private WebLimitService f_webLimitService;
  private WebTypeAdapter f_webTypeApapter = null;
  private List<WebTypeBean> f_webTypeList = null;
  private int page = 1;
  List<Record_SoftBean> recordSoftBeans;
  private TextView textview_timesenior_add;
  private CheckBox textview_timesenior_selectall;
  private TextView tf_line_net;
  private TextView tf_line_soft;
  private String userId = "";
  private EditText v_dialog_url;
  private ProgressDialog v_progressDialog;

  private void Dialoginit(View paramView)
  {
    this.v_dialog_url = ((EditText)paramView.findViewById(2131493100));
  }

  private void ShowLimitSoftType()
  {
    new WebTypeAsyncTask().execute(new String[] { "soft" });
  }

  private void ShowLimitWebType()
  {
    new WebTypeAsyncTask().execute(new String[] { "init" });
  }

  private void addBlackURLDialog(Context paramContext)
  {
    View localView = getLayoutInflater().inflate(2130903043, null);
    final Dialog localDialog = new Dialog(paramContext, 2131361814);
    localDialog.setContentView(localView);
    TextView localTextView1 = (TextView)localView.findViewById(2131492892);
    TextView localTextView2 = (TextView)localView.findViewById(2131492893);
    localTextView1.setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        String str = this.val$edittextAddURL.getText().toString();
        if (BlackListActivity.this.checkURL(str))
        {
          BlackListActivity.this.addURL = str;
          Logger.e("System.out", BlackListActivity.this.addURL);
          new BlackListActivity.Limit_Web_AddLimitAsyncTask(BlackListActivity.this).execute(new String[] { "add" });
          localDialog.dismiss();
        }
      }
    });
    localTextView2.setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        localDialog.dismiss();
      }
    });
    localDialog.show();
  }

  private void addListener()
  {
    this.black_Button_set1.setOnClickListener(this);
    this.black_Button_set2.setOnClickListener(this);
    this.textview_timesenior_selectall.setOnClickListener(this);
    this.textview_timesenior_add.setOnClickListener(this);
    this.ImageView_senior_del.setOnClickListener(this);
    addMoreListListener();
  }

  private void addMoreListListener()
  {
    this.ListView_black.setOnScrollListener(new AbsListView.OnScrollListener()
    {
      public void onScroll(AbsListView paramAnonymousAbsListView, int paramAnonymousInt1, int paramAnonymousInt2, int paramAnonymousInt3)
      {
      }

      public void onScrollStateChanged(AbsListView paramAnonymousAbsListView, int paramAnonymousInt)
      {
        if ((paramAnonymousInt == 0) && (paramAnonymousAbsListView.getLastVisiblePosition() == -1 + paramAnonymousAbsListView.getCount()))
          new BlackListActivity.WebTypeAsyncTask(BlackListActivity.this).execute(new String[] { "more" });
      }
    });
  }

  private Dialog addUrlDialog(Context paramContext)
  {
    View localView = LayoutInflater.from(paramContext).inflate(2130903095, null);
    AlertDialog.Builder localBuilder = new AlertDialog.Builder(paramContext);
    localBuilder.setTitle(getString(2131427586));
    localBuilder.setView(localView);
    Dialoginit(localView);
    localBuilder.setPositiveButton(getString(2131427513), new DialogInterface.OnClickListener()
    {
      public void onClick(DialogInterface paramAnonymousDialogInterface, int paramAnonymousInt)
      {
        String str = BlackListActivity.this.v_dialog_url.getText().toString();
        if (!str.equals(""))
          try
          {
            StateBean localStateBean = BlackListActivity.this.f_webLimitService.addLimitUrl(BlackListActivity.this.userId, BlackListActivity.this.f_serverAppBean.getPassword(), BlackListActivity.this.equipName, str, BlackListActivity.this);
            if (localStateBean.getCode().equals("0"))
            {
              BlackListActivity.this.alertMessage(BlackListActivity.this.getString(2131427592));
              return;
            }
            BlackListActivity.this.alertMessage(localStateBean.getDesc());
            return;
          }
          catch (IOException localIOException)
          {
            localIOException.printStackTrace();
            return;
          }
          catch (XmlPullParserException localXmlPullParserException)
          {
            localXmlPullParserException.printStackTrace();
            return;
          }
          catch (TimeOutException localTimeOutException)
          {
            localTimeOutException.printStackTrace();
            return;
          }
          catch (NotFoundNetWorkException localNotFoundNetWorkException)
          {
            localNotFoundNetWorkException.printStackTrace();
            return;
          }
        BlackListActivity.this.alertMessage(BlackListActivity.this.getString(2131427587));
      }
    });
    localBuilder.setNegativeButton(getString(2131427514), new DialogInterface.OnClickListener()
    {
      public void onClick(DialogInterface paramAnonymousDialogInterface, int paramAnonymousInt)
      {
      }
    });
    return localBuilder.create();
  }

  private String bgAddLimitUrl(String paramString)
  {
    try
    {
      String str1 = paramString.trim();
      StateBean localStateBean = this.f_webLimitService.addLimitUrl(this.userId, this.f_serverAppBean.getPassword(), this.equipName, str1, this);
      String str2 = localStateBean.getCode();
      Logger.e("System.out", "code2-描述---" + localStateBean.getDesc());
      this.alertString = localStateBean.getDesc();
      return str2;
    }
    catch (IOException localIOException)
    {
      return getString(2131427525);
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      return getString(2131427525);
    }
    catch (TimeOutException localTimeOutException)
    {
      return getString(2131427525);
    }
    catch (NotFoundNetWorkException localNotFoundNetWorkException)
    {
      localNotFoundNetWorkException.getClass();
    }
    return "没有连接到网络";
  }

  private String bgInitSoftTypeList()
  {
    try
    {
      this.page = 1;
      this.recordSoftBeans = this.f_webLimitService.getGameBlackList(this.userId, this.equipName, this.page, this);
      return "";
    }
    catch (IOException localIOException)
    {
      return getString(2131427525);
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      return getString(2131427525);
    }
    catch (TimeOutException localTimeOutException)
    {
      return getString(2131427525);
    }
    catch (NotFoundNetWorkException localNotFoundNetWorkException)
    {
      localNotFoundNetWorkException.getClass();
    }
    return "没有连接到网络";
  }

  private String bgInitWebTypeList()
  {
    try
    {
      this.page = 1;
      this.f_webTypeList = this.f_webLimitService.getWebBlackList(this.userId, this.equipName, this);
      return "添加成功";
    }
    catch (IOException localIOException)
    {
      return getString(2131427525);
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      return getString(2131427525);
    }
    catch (TimeOutException localTimeOutException)
    {
      return getString(2131427525);
    }
    catch (NotFoundNetWorkException localNotFoundNetWorkException)
    {
      localNotFoundNetWorkException.getClass();
    }
    return "没有连接到网络";
  }

  private String bgMoreGameSortList()
  {
    try
    {
      this.page = (1 + this.page);
      this.f_newList_game = this.f_webLimitService.getGameBlackList(this.userId, this.equipName, this.page, this);
      return "";
    }
    catch (IOException localIOException)
    {
      return getString(2131427525);
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      return getString(2131427525);
    }
    catch (TimeOutException localTimeOutException)
    {
      return getString(2131427525);
    }
    catch (NotFoundNetWorkException localNotFoundNetWorkException)
    {
      localNotFoundNetWorkException.getClass();
    }
    return "没有连接到网络";
  }

  private String bgMoreWebSortList()
  {
    try
    {
      this.page = (1 + this.page);
      this.f_newList = this.f_webLimitService.getWebType(this.userId, this.equipName, this.page, this);
      return "";
    }
    catch (IOException localIOException)
    {
      return getString(2131427525);
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      return getString(2131427525);
    }
    catch (TimeOutException localTimeOutException)
    {
      return getString(2131427525);
    }
    catch (NotFoundNetWorkException localNotFoundNetWorkException)
    {
      localNotFoundNetWorkException.getClass();
    }
    return "没有连接到网络";
  }

  private void bgShowLimitGTypeame()
  {
    this.ListView_black.setAdapter(getAdapterGame(this.recordSoftBeans));
    this.RelativeLayout_timesenior_del.setVisibility(4);
  }

  private void bgShowLimitSoftType()
  {
    blackEdit();
    this.ListView_black.setAdapter(getAdapterGame(this.recordSoftBeans));
  }

  private void bgShowLimitWebType()
  {
    this.ListView_black.setAdapter(getAdapterURL(this.f_webTypeList));
    blackEdit();
  }

  private boolean checkURL(String paramString)
  {
    boolean bool = true;
    if (paramString.equals(""))
    {
      bool = false;
      alertMessage(getString(2131427587));
    }
    do
    {
      return bool;
      if (!Arith.isURL(paramString))
      {
        alertMessage(getString(2131427590));
        return false;
      }
    }
    while (!paramString.contains(getString(2131427508)));
    alertMessage(getString(2131427598));
    return false;
  }

  private void createOrShowDialog()
  {
    if ((this.v_progressDialog == null) || (!this.v_progressDialog.isShowing()))
    {
      this.v_progressDialog = new ProgressDialog(this);
      this.v_progressDialog.setMessage(getString(2131427516));
      this.v_progressDialog.setCancelable(true);
    }
    try
    {
      this.v_progressDialog.show();
      return;
    }
    catch (Exception localException)
    {
    }
  }

  private String dellist()
  {
    if ((this.f_webTypeApapter != null) && (!this.f_webTypeApapter.isEmpty()));
    while (true)
    {
      try
      {
        StateBean localStateBean2 = this.f_softLimitService.delCommit(this.userId, this.equipName, this.f_webTypeApapter.getDeleteList(), this);
        localStateBean1 = localStateBean2;
        if (localStateBean1 != null)
          this.alertString = localStateBean1.getCode();
        return this.alertString;
      }
      catch (IOException localIOException)
      {
        this.alertString = getString(2131427525);
        localStateBean1 = null;
        continue;
      }
      catch (XmlPullParserException localXmlPullParserException)
      {
        this.alertString = getString(2131427525);
        localStateBean1 = null;
        continue;
      }
      catch (TimeOutException localTimeOutException)
      {
        this.alertString = getString(2131427525);
        localStateBean1 = null;
        continue;
      }
      catch (NotFoundNetWorkException localNotFoundNetWorkException)
      {
        localNotFoundNetWorkException.getClass();
        this.alertString = "没有连接到网络";
        localStateBean1 = null;
        continue;
      }
      this.alertString = getString(2131427589);
      StateBean localStateBean1 = null;
    }
  }

  private String dellistGame()
  {
    if ((this.blackListGameAdapter != null) && (!this.blackListGameAdapter.isEmpty()));
    while (true)
    {
      try
      {
        StateBean localStateBean2 = this.f_softLimitService.delCommitgame(this.userId, this.equipName, this.blackListGameAdapter.getDeleteList(), this);
        localStateBean1 = localStateBean2;
        if (localStateBean1 != null)
          this.alertString = localStateBean1.getCode();
        return this.alertString;
      }
      catch (IOException localIOException)
      {
        this.alertString = getString(2131427525);
        localStateBean1 = null;
        continue;
      }
      catch (XmlPullParserException localXmlPullParserException)
      {
        this.alertString = getString(2131427525);
        localStateBean1 = null;
        continue;
      }
      catch (TimeOutException localTimeOutException)
      {
        this.alertString = getString(2131427525);
        localStateBean1 = null;
        continue;
      }
      catch (NotFoundNetWorkException localNotFoundNetWorkException)
      {
        localNotFoundNetWorkException.getClass();
        this.alertString = "没有连接到网络";
        localStateBean1 = null;
        continue;
      }
      this.alertString = getString(2131427589);
      StateBean localStateBean1 = null;
    }
  }

  private BlackListGameAdapter getAdapterGame(List<Record_SoftBean> paramList)
  {
    if (paramList != null);
    try
    {
      this.blackListGameAdapter = new BlackListGameAdapter(this, paramList);
      this.blackListGameAdapter.notifyDataSetChanged();
      label24: return this.blackListGameAdapter;
    }
    catch (Exception localException)
    {
      break label24;
    }
  }

  private WebTypeAdapter getAdapterURL(List<WebTypeBean> paramList)
  {
    if (paramList != null);
    try
    {
      this.f_webTypeApapter = new WebTypeAdapter(this, paramList);
      this.f_webTypeApapter.notifyDataSetChanged();
      label24: return this.f_webTypeApapter;
    }
    catch (Exception localException)
    {
      break label24;
    }
  }

  private void goneAllTabLine()
  {
    this.tf_line_net.setVisibility(4);
    this.tf_line_soft.setVisibility(4);
  }

  private void init()
  {
    this.f_webLimitService = new WebLimitService();
    this.f_softLimitService = new SoftLimitService();
    this.f_serverAppBean = ((ServerAppBean)getApplication());
    this.textview_timesenior_selectall = ((CheckBox)findViewById(2131493328));
    this.textview_timesenior_add = ((TextView)findViewById(2131493329));
    this.RelativeLayout_timesenior_del = ((RelativeLayout)findViewById(2131493147));
    this.TextView_type = ((TextView)findViewById(2131493325));
    this.ListView_black = ((ListView)findViewById(2131493326));
    this.black_Button_set1 = ((TextView)findViewById(2131493321));
    this.black_Button_set2 = ((TextView)findViewById(2131493322));
    this.ImageView_senior_del = ((Button)findViewById(2131493330));
    this.tf_line_net = ((TextView)findViewById(2131493323));
    this.tf_line_soft = ((TextView)findViewById(2131493324));
    RqSP localRqSP = new RqSP();
    this.equipName = localRqSP.getLgDevId(this);
    this.userId = localRqSP.getLgDevAccount(this);
  }

  private void initActionBar()
  {
    hideBarHome();
    setBarTitle(getResources().getString(2131427597));
    setBarBackOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        BlackListActivity.this.finish();
      }
    });
  }

  private Dialog loginoutbuildDialog(Context paramContext)
  {
    final Dialog localDialog = delDialog(getString(2131427597), getString(2131427588));
    setDelDialogListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        if (BlackListActivity.this.Logchange == 1)
          new BlackListActivity.Limit_Web_AddLimitAsyncTask(BlackListActivity.this).execute(new String[] { "delnet" });
        while (true)
        {
          localDialog.dismiss();
          return;
          if (BlackListActivity.this.Logchange == 2)
            new BlackListActivity.Limit_Web_AddLimitAsyncTask(BlackListActivity.this).execute(new String[] { "delsoft" });
        }
      }
    }
    , new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        localDialog.dismiss();
      }
    });
    return localDialog;
  }

  private void postMoreGameSortListPie()
  {
    if ((this.f_newList_game != null) && (this.f_newList_game.size() > 0))
    {
      Iterator localIterator = this.f_newList_game.iterator();
      while (true)
      {
        if (!localIterator.hasNext())
        {
          this.blackListGameAdapter.notifyDataSetChanged();
          this.f_newList_game = null;
          return;
        }
        Record_SoftBean localRecord_SoftBean = (Record_SoftBean)localIterator.next();
        this.blackListGameAdapter.add(localRecord_SoftBean);
      }
    }
    this.page = (-1 + this.page);
    alertMessage(getString(2131427519));
  }

  private void postMoreWebSortListPie()
  {
    if ((this.f_newList != null) && (this.f_newList.size() > 0))
    {
      Iterator localIterator = this.f_newList.iterator();
      while (true)
      {
        if (!localIterator.hasNext())
        {
          this.f_webTypeApapter.notifyDataSetChanged();
          this.f_newList = null;
          return;
        }
        WebTypeBean localWebTypeBean = (WebTypeBean)localIterator.next();
        this.f_webTypeApapter.add(localWebTypeBean);
      }
    }
    this.page = (-1 + this.page);
    alertMessage(getString(2131427519));
  }

  private void selectSoft()
  {
    this.Logchange = 2;
    this.blSelectAll = false;
    this.TextView_type.setText(getString(2131427529));
    ShowLimitSoftType();
    goneAllTabLine();
    this.tf_line_soft.setVisibility(0);
    this.RelativeLayout_timesenior_del.setVisibility(0);
  }

  private void selectWeb()
  {
    this.Logchange = 1;
    this.blSelectAll = false;
    this.TextView_type.setText(getString(2131427596));
    ShowLimitWebType();
    goneAllTabLine();
    this.tf_line_net.setVisibility(0);
    this.RelativeLayout_timesenior_del.setVisibility(0);
  }

  private void showWhat()
  {
    if ("0".equals(getIntent().getExtras().getString("type")))
    {
      selectWeb();
      return;
    }
    selectSoft();
  }

  public void PostShowAddInfo(String paramString)
  {
    if (paramString.equals("0"))
    {
      alertMessage(getString(2131427520));
      ShowLimitWebType();
      return;
    }
    alertMessage("添加失败");
  }

  protected void backKeyCallBack()
  {
    super.backKeyCallBack();
    finish();
  }

  public void blackEdit()
  {
    this.RelativeLayout_timesenior_del.setVisibility(0);
    if (this.Logchange == 1)
      this.textview_timesenior_add.setVisibility(0);
    while (this.Logchange != 2)
      return;
    this.textview_timesenior_add.setVisibility(4);
  }

  public void onClick(View paramView)
  {
    if (paramView == this.black_Button_set1)
      selectWeb();
    while (true)
    {
      return;
      if (paramView == this.black_Button_set2)
      {
        selectSoft();
        return;
      }
      if (paramView == this.textview_timesenior_selectall)
      {
        if (!this.blSelectAll)
        {
          this.blSelectAll = true;
          this.textview_timesenior_selectall.setChecked(true);
        }
        while (this.Logchange == 1)
        {
          this.f_webTypeApapter.showChoseImageView(this.blSelectAll);
          return;
          this.blSelectAll = false;
          this.textview_timesenior_selectall.setChecked(false);
        }
        if (this.Logchange == 2)
          this.blackListGameAdapter.showChoseImageView(this.blSelectAll);
      }
      else
      {
        if (paramView == this.ImageView_senior_del);
        try
        {
          if (this.Logchange == 1)
          {
            if (this.f_webTypeApapter.getDeleteList().size() == 0)
            {
              alertMessage(getString(2131427906));
              return;
            }
            showDialog(1);
            return;
          }
          if (this.blackListGameAdapter.getDeleteList().size() == 0)
          {
            alertMessage(getString(2131427906));
            return;
          }
          showDialog(1);
          return;
          if ((paramView == this.textview_timesenior_add) && (this.Logchange == 1))
          {
            addBlackURLDialog(this);
            return;
          }
        }
        catch (Exception localException)
        {
        }
      }
    }
  }

  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903163);
    initActionBar();
    init();
    addListener();
    showWhat();
  }

  protected Dialog onCreateDialog(int paramInt)
  {
    switch (paramInt)
    {
    default:
      return null;
    case 1:
      return loginoutbuildDialog(this);
    case 2:
    }
    return addUrlDialog(this);
  }

  public String urlFilter(String paramString)
  {
    String str = paramString;
    if (paramString.contains("http://"))
      str = paramString.replace("http://", "");
    if (paramString.contains("https://"))
      str = paramString.replace("https://", "");
    if (paramString.contains("ftp://"))
      str = paramString.replace("ftp://", "");
    if (paramString.contains("www."))
      str = paramString.replace("www.", "");
    return str;
  }

  public class Limit_Web_AddLimitAsyncTask extends AsyncTask<String, Integer, String>
  {
    private String method = "";

    public Limit_Web_AddLimitAsyncTask()
    {
    }

    protected String doInBackground(String[] paramArrayOfString)
    {
      Logger.e("System.out", "过滤前--" + BlackListActivity.this.addURL);
      BlackListActivity.this.addURL = BlackListActivity.this.urlFilter(BlackListActivity.this.addURL);
      Logger.e("System.out", "过滤后--" + BlackListActivity.this.addURL);
      this.method = paramArrayOfString[0];
      if ((this.method != null) && (BlackListActivity.this.addURL != null) && (this.method.equals("add")))
        return BlackListActivity.this.bgAddLimitUrl(BlackListActivity.this.addURL);
      if (this.method.equals("delnet"))
        return BlackListActivity.this.dellist();
      if (this.method.equals("delsoft"))
        return BlackListActivity.this.dellistGame();
      return "";
    }

    protected void onPostExecute(String paramString)
    {
      if (this.method.equals("add"))
        BlackListActivity.this.PostShowAddInfo(paramString);
      try
      {
        while (true)
        {
          BlackListActivity.this.v_progressDialog.dismiss();
          return;
          if (this.method.equals("delnet"))
          {
            if (paramString.equals("0"))
            {
              BlackListActivity.this.alertMessage(BlackListActivity.this.getString(2131427517));
              BlackListActivity.this.ShowLimitWebType();
            }
            else
            {
              BlackListActivity.this.alertMessage(BlackListActivity.this.alertString);
            }
          }
          else if (this.method.equals("delsoft"))
            if (paramString.equals("0"))
            {
              BlackListActivity.this.alertMessage(BlackListActivity.this.getString(2131427517));
              BlackListActivity.this.ShowLimitSoftType();
            }
            else
            {
              BlackListActivity.this.alertMessage(BlackListActivity.this.alertString);
            }
        }
      }
      catch (Exception localException)
      {
      }
    }

    protected void onPreExecute()
    {
      BlackListActivity.this.createOrShowDialog();
    }
  }

  public class WebTypeAsyncTask extends AsyncTask<String, Integer, String>
  {
    private String method = "";

    public WebTypeAsyncTask()
    {
    }

    protected String doInBackground(String[] paramArrayOfString)
    {
      this.method = paramArrayOfString[0];
      if (this.method.equals("init"))
        return BlackListActivity.this.bgInitWebTypeList();
      if (this.method.equals("refash"))
        return BlackListActivity.this.bgInitWebTypeList();
      if (this.method.equals("soft"))
        return BlackListActivity.this.bgInitSoftTypeList();
      if (this.method.equals("more"))
        if (BlackListActivity.this.Logchange == 1)
          BlackListActivity.this.bgMoreWebSortList();
      while (true)
      {
        return "";
        BlackListActivity.this.bgMoreGameSortList();
        continue;
        this.method.equals("del");
      }
    }

    protected void onPostExecute(String paramString)
    {
      if (this.method.equals("init"))
        BlackListActivity.this.bgShowLimitWebType();
      try
      {
        while (true)
        {
          BlackListActivity.this.v_progressDialog.dismiss();
          return;
          if (this.method.equals("refash"))
            BlackListActivity.this.bgShowLimitWebType();
          else if (this.method.equals("soft"))
            BlackListActivity.this.bgShowLimitSoftType();
          else if (this.method.equals("more"))
          {
            if (BlackListActivity.this.Logchange == 1)
              BlackListActivity.this.postMoreWebSortListPie();
            else
              BlackListActivity.this.postMoreGameSortListPie();
          }
          else if (this.method.equals("del"))
            BlackListActivity.this.alertMessage(BlackListActivity.this.getString(2131427517));
        }
      }
      catch (Exception localException)
      {
      }
    }

    protected void onPreExecute()
    {
      BlackListActivity.this.createOrShowDialog();
    }
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.activity.BlackListActivity
 * JD-Core Version:    0.6.2
 */